//
//  SettingObject.h
//  农管家
//
//  Created by Apple on 15/8/12.
//  Copyright (c) 2015年 Apple. All rights reserved.
//

#import <Foundation/Foundation.h>
//#import "JSHAREService.h"
#import "AppMacro.h"


@interface SettingObject : NSObject

//字典转换成json格式字符串
+ (NSString*)dictionaryToJson:(NSDictionary *)dic;


+(CGSize)sizeWithContenString:(NSString*)string font:(UIFont*)font size:(CGSize)size;

//弹框
+(void)showAlert:(NSString *)title content:(NSString *)content;

//检查Object是否有效
+ (BOOL)objectIsValid:(id)object;

+ (NSAttributedString*)labelLoadHTMLWithString:(NSString*)titleString;
+ (UIViewController *)getCurrentViewController;
+ (UIViewController *)topViewController;


+(BOOL)checkStringIsPhoneNumber:(NSString*)str;

+(BOOL)isAllNumber:(NSString *)contentStr;

+ (void)pushviewController:(UIViewController *)pushVC;

//获取总内存大小
+ (long long)getTotalMemorySize;
//获取剩余存储空间
+ (NSString *) freeDiskSpaceInBytes;

@end
